package com.flute.framework.search.result;

import com.flute.framework.search.highlight.DefaultKeywordMarker;
import com.flute.framework.search.highlight.IKeywordMarker;

public class MarkedResultProperty {

	private String name;
	private String value;
	private IKeywordMarker marker;

	public MarkedResultProperty() {
	}

	public MarkedResultProperty(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public IKeywordMarker getMarker() {
		if (marker == null) {
			return new DefaultKeywordMarker();
		}

		return marker;
	}

	public void setMarker(IKeywordMarker marker) {
		this.marker = marker;
	}

}
